/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fenetre;

import Tri.Search;
import Tri.TriRapide;
import java.awt.Color;
import java.io.File;
import java.util.*;
import javax.swing.JProgressBar;
import metier.ListPersonne;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JProgressBar;
import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;
import metier.ListPersonne;
import metier.Personne;
import metier.PersonneComparator;
import model.MonModeleTable;

/**
 *
 * @author epulapp
 */
public class view extends javax.swing.JFrame {

    /**
     * Creates new form view
     */
    MonModeleTable model = new MonModeleTable();
    

    public view() {
        initComponents();
        TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(jTable1.getModel());   
        jTable1.setRowSorter(sorter);
        
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jIF_CreateReseau = new javax.swing.JFrame();
        Logo1 = new javax.swing.JLabel();
        jRB_04 = new javax.swing.JRadioButton();
        jRB_03 = new javax.swing.JRadioButton();
        jButton3 = new javax.swing.JButton();
        jRB_02 = new javax.swing.JRadioButton();
        jButton4 = new javax.swing.JButton();
        jRB_01 = new javax.swing.JRadioButton();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jTextCreateReseauNbNoyau = new javax.swing.JTextField();
        JbGroupCreateReseau = new javax.swing.ButtonGroup();
        jIF_CreateReseau1 = new javax.swing.JFrame();
        Logo2 = new javax.swing.JLabel();
        jButton6 = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jProgressBarGeneration = new javax.swing.JProgressBar();
        jLabel2 = new javax.swing.JLabel();
        jLabelTimeCreation = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jVisualisation = new javax.swing.JFrame();
        BackgroundPrincipale1 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jButton10 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jButton12 = new javax.swing.JButton();
        jPersonne = new javax.swing.JFrame();
        jLabel1 = new javax.swing.JLabel();
        jIcone = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabelNom = new javax.swing.JLabel();
        jLabelPrenom = new javax.swing.JLabel();
        jLabelTx = new javax.swing.JLabel();
        jLabelPseudo = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabelInteret = new javax.swing.JLabel();
        jBFSpseudo = new javax.swing.JFrame();
        jLabel8 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jTextPseudoBFS = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel21 = new javax.swing.JLabel();
        jTextPseudoBFS2 = new javax.swing.JTextField();
        jError = new javax.swing.JFrame();
        jLabel13 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jDFSpseudo = new javax.swing.JFrame();
        jLabel14 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jTextPseudoDFS = new javax.swing.JTextField();
        jButton5 = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        jLabel22 = new javax.swing.JLabel();
        jTextPseudoDFS2 = new javax.swing.JTextField();
        jDirect = new javax.swing.JFrame();
        jLabel15 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jTextPseudoDirect = new javax.swing.JTextField();
        jButton8 = new javax.swing.JButton();
        jButton9 = new javax.swing.JButton();
        jSucces = new javax.swing.JFrame();
        jLabel16 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jVisualiseSucces = new javax.swing.JButton();
        resultatRecherche = new javax.swing.JLabel();
        jLabelSuccesNbAmis = new javax.swing.JLabel();
        BackgroundPrincipale = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem15 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuBFS = new javax.swing.JMenuItem();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuDFS = new javax.swing.JMenuItem();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuDirect = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();

        jIF_CreateReseau.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        Logo1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/logo.png"))); // NOI18N

        jRB_04.setBackground(new java.awt.Color(59, 89, 152));
        jRB_04.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jRB_04.setForeground(new java.awt.Color(255, 255, 255));
        jRB_04.setText("1 000 000");

        jRB_03.setBackground(new java.awt.Color(59, 89, 152));
        jRB_03.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jRB_03.setForeground(new java.awt.Color(255, 255, 255));
        jRB_03.setText("100 000");
        jRB_03.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentMoved(java.awt.event.ComponentEvent evt) {
                jRB_03ComponentMoved(evt);
            }
        });

        jButton3.setText("Quitter");

        jRB_02.setBackground(new java.awt.Color(59, 89, 152));
        jRB_02.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jRB_02.setForeground(new java.awt.Color(255, 255, 255));
        jRB_02.setText("10 000");

        jButton4.setText("Générer le réseau");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jRB_01.setBackground(new java.awt.Color(59, 89, 152));
        jRB_01.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jRB_01.setForeground(new java.awt.Color(255, 255, 255));
        jRB_01.setText("1 000");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
        jLabel4.setForeground(new java.awt.Color(255, 255, 255));
        jLabel4.setText("Création du réseau ");

        jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel5.setForeground(new java.awt.Color(255, 255, 255));
        jLabel5.setText("Choix de la taille du réseau: ");

        jLabel6.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
        jLabel6.setForeground(new java.awt.Color(255, 255, 255));
        jLabel6.setText("Nombre de personne dans le Noyau : ");

        javax.swing.GroupLayout jIF_CreateReseauLayout = new javax.swing.GroupLayout(jIF_CreateReseau.getContentPane());
        jIF_CreateReseau.getContentPane().setLayout(jIF_CreateReseauLayout);
        jIF_CreateReseauLayout.setHorizontalGroup(
            jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                        .addGroup(jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel6)
                            .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                                .addGap(50, 50, 50)
                                .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(18, 18, 18)
                        .addGroup(jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                                .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(Logo1))
                            .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                                .addComponent(jTextCreateReseauNbNoyau, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 0, Short.MAX_VALUE))))
                    .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addGap(18, 18, 18)
                        .addComponent(jRB_01)
                        .addGap(18, 18, 18)
                        .addComponent(jRB_02)
                        .addGap(18, 18, 18)
                        .addComponent(jRB_03)
                        .addGap(18, 18, 18)
                        .addComponent(jRB_04)
                        .addGap(0, 44, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                .addGap(116, 116, 116)
                .addComponent(jLabel4)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jIF_CreateReseauLayout.setVerticalGroup(
            jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jRB_01)
                    .addComponent(jRB_02)
                    .addComponent(jRB_03)
                    .addComponent(jRB_04))
                .addGroup(jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jIF_CreateReseauLayout.createSequentialGroup()
                        .addGroup(jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(jTextCreateReseauNbNoyau, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(43, 43, 43)
                        .addGroup(jIF_CreateReseauLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jIF_CreateReseauLayout.createSequentialGroup()
                        .addGap(0, 13, Short.MAX_VALUE)
                        .addComponent(Logo1)
                        .addGap(27, 27, 27))))
        );

        Logo2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/logo.png"))); // NOI18N

        jButton6.setText("Abandonner la génération");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });

        jLabel7.setFont(new java.awt.Font("Tahoma", 1, 36)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setText("Génération du réseau en cours...");

        jLabel2.setBackground(new java.awt.Color(255, 255, 255));
        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("Temps : ");

        jLabelTimeCreation.setBackground(new java.awt.Color(255, 255, 255));
        jLabelTimeCreation.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabelTimeCreation.setForeground(new java.awt.Color(255, 255, 255));
        jLabelTimeCreation.setText("0");

        jLabel3.setBackground(new java.awt.Color(255, 255, 255));
        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(255, 255, 255));
        jLabel3.setText("secondes...");

        javax.swing.GroupLayout jIF_CreateReseau1Layout = new javax.swing.GroupLayout(jIF_CreateReseau1.getContentPane());
        jIF_CreateReseau1.getContentPane().setLayout(jIF_CreateReseau1Layout);
        jIF_CreateReseau1Layout.setHorizontalGroup(
            jIF_CreateReseau1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                .addGroup(jIF_CreateReseau1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabel7)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                        .addGroup(jIF_CreateReseau1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                                .addGap(47, 47, 47)
                                .addComponent(jProgressBarGeneration, javax.swing.GroupLayout.PREFERRED_SIZE, 369, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                                .addGap(115, 115, 115)
                                .addComponent(jLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jIF_CreateReseau1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 190, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                                        .addComponent(jLabelTimeCreation)
                                        .addGap(18, 18, 18)
                                        .addComponent(jLabel3)))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(Logo2)))
                .addContainerGap())
        );
        jIF_CreateReseau1Layout.setVerticalGroup(
            jIF_CreateReseau1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGroup(jIF_CreateReseau1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                        .addGap(37, 37, 37)
                        .addComponent(jProgressBarGeneration, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jIF_CreateReseau1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(jLabelTimeCreation)
                            .addComponent(jLabel3))
                        .addGap(18, 18, 18)
                        .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jIF_CreateReseau1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 55, Short.MAX_VALUE)
                        .addComponent(Logo2)
                        .addGap(27, 27, 27))))
        );

        jVisualisation.setTitle("Polybook - Fenetre Principale");

        BackgroundPrincipale1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/logo.jpg"))); // NOI18N

        jTable1.setModel(model);
        jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable1MouseClicked(evt);
            }
        });
        jScrollPane1.setViewportView(jTable1);

        jButton10.setText("Trier par Célébrité");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });

        jButton11.setText("Trier par Nom");
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton12.setText("Trier par Pseudo");
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jVisualisationLayout = new javax.swing.GroupLayout(jVisualisation.getContentPane());
        jVisualisation.getContentPane().setLayout(jVisualisationLayout);
        jVisualisationLayout.setHorizontalGroup(
            jVisualisationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jVisualisationLayout.createSequentialGroup()
                .addGap(67, 67, 67)
                .addComponent(jButton12)
                .addGap(127, 127, 127)
                .addComponent(jButton10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton11)
                .addGap(133, 133, 133))
            .addGroup(jVisualisationLayout.createSequentialGroup()
                .addGroup(jVisualisationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 797, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(BackgroundPrincipale1))
                .addGap(0, 0, Short.MAX_VALUE))
        );
        jVisualisationLayout.setVerticalGroup(
            jVisualisationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jVisualisationLayout.createSequentialGroup()
                .addComponent(BackgroundPrincipale1, javax.swing.GroupLayout.PREFERRED_SIZE, 172, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 247, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                .addGroup(jVisualisationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton10)
                    .addComponent(jButton11)
                    .addComponent(jButton12))
                .addContainerGap())
        );

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(255, 255, 255));
        jLabel1.setText("Fiche résumé ");

        jIcone.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/icon/1.png"))); // NOI18N

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel9.setForeground(new java.awt.Color(255, 255, 255));
        jLabel9.setText("Pseudo : ");

        jLabel10.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel10.setForeground(new java.awt.Color(255, 255, 255));
        jLabel10.setText("Nom : ");

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel11.setForeground(new java.awt.Color(255, 255, 255));
        jLabel11.setText("Prenom : ");

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel12.setForeground(new java.awt.Color(255, 255, 255));
        jLabel12.setText("Taux de célébrité : ");

        jLabelNom.setText("jLabel13");

        jLabelPrenom.setText("jLabel13");

        jLabelTx.setText("jLabel13");

        jLabelPseudo.setText("jLabel13");

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel24.setForeground(new java.awt.Color(255, 255, 255));
        jLabel24.setText("Intérêt : ");

        jLabelInteret.setText("jLabel13");

        javax.swing.GroupLayout jPersonneLayout = new javax.swing.GroupLayout(jPersonne.getContentPane());
        jPersonne.getContentPane().setLayout(jPersonneLayout);
        jPersonneLayout.setHorizontalGroup(
            jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPersonneLayout.createSequentialGroup()
                .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPersonneLayout.createSequentialGroup()
                        .addGap(132, 132, 132)
                        .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPersonneLayout.createSequentialGroup()
                        .addGap(60, 60, 60)
                        .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPersonneLayout.createSequentialGroup()
                                .addComponent(jLabel11)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelPrenom))
                            .addGroup(jPersonneLayout.createSequentialGroup()
                                .addComponent(jLabel9)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelPseudo))
                            .addGroup(jPersonneLayout.createSequentialGroup()
                                .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel12)
                                    .addGroup(jPersonneLayout.createSequentialGroup()
                                        .addComponent(jLabel24)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabelInteret)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelTx))
                            .addGroup(jPersonneLayout.createSequentialGroup()
                                .addComponent(jLabel10)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelNom)))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                .addComponent(jIcone, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(21, 21, 21))
        );
        jPersonneLayout.setVerticalGroup(
            jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPersonneLayout.createSequentialGroup()
                .addGap(45, 45, 45)
                .addComponent(jIcone, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
            .addGroup(jPersonneLayout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jLabelPseudo))
                .addGap(18, 18, 18)
                .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(jLabelNom))
                .addGap(18, 18, 18)
                .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jLabelPrenom))
                .addGap(18, 18, 18)
                .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(jLabelTx))
                .addGap(18, 18, 18)
                .addGroup(jPersonneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(jLabelInteret))
                .addGap(11, 11, Short.MAX_VALUE))
        );

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setText("Recherche Pseudo BFS");

        jLabel17.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel17.setForeground(new java.awt.Color(255, 255, 255));
        jLabel17.setText("Entrer le pseudo de qui lancer la recherche : ");

        jTextPseudoBFS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextPseudoBFSActionPerformed(evt);
            }
        });

        jButton1.setText("Rechercher");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton2.setText("Annuler");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jLabel21.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel21.setForeground(new java.awt.Color(255, 255, 255));
        jLabel21.setText("Entrer le pseudo de la personne à rechercher : ");

        jTextPseudoBFS2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextPseudoBFS2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jBFSpseudoLayout = new javax.swing.GroupLayout(jBFSpseudo.getContentPane());
        jBFSpseudo.getContentPane().setLayout(jBFSpseudoLayout);
        jBFSpseudoLayout.setHorizontalGroup(
            jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jBFSpseudoLayout.createSequentialGroup()
                .addGroup(jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jBFSpseudoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel21))
                    .addGroup(jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jBFSpseudoLayout.createSequentialGroup()
                            .addGap(66, 66, 66)
                            .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton1))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jBFSpseudoLayout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabel8)
                                .addComponent(jLabel17)))))
                .addGap(18, 18, 18)
                .addGroup(jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextPseudoBFS, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextPseudoBFS2, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(28, Short.MAX_VALUE))
        );
        jBFSpseudoLayout.setVerticalGroup(
            jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jBFSpseudoLayout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(jTextPseudoBFS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel21)
                    .addComponent(jTextPseudoBFS2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jBFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton2)
                    .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(30, 30, 30))
        );

        jLabel13.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel13.setForeground(new java.awt.Color(255, 255, 255));
        jLabel13.setText("Erreur");

        jLabel18.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel18.setForeground(new java.awt.Color(255, 255, 255));
        jLabel18.setText("Le réseau n'existe pas encore... Veuillez le générer");

        javax.swing.GroupLayout jErrorLayout = new javax.swing.GroupLayout(jError.getContentPane());
        jError.getContentPane().setLayout(jErrorLayout);
        jErrorLayout.setHorizontalGroup(
            jErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jErrorLayout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addComponent(jLabel18)
                .addContainerGap(40, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jErrorLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(84, 84, 84))
        );
        jErrorLayout.setVerticalGroup(
            jErrorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jErrorLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel18)
                .addContainerGap(34, Short.MAX_VALUE))
        );

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel14.setForeground(new java.awt.Color(255, 255, 255));
        jLabel14.setText("Recherche Pseudo DFS");

        jLabel19.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel19.setForeground(new java.awt.Color(255, 255, 255));
        jLabel19.setText("Entrer le pseudo de la personne à rechercher : ");

        jTextPseudoDFS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextPseudoDFSActionPerformed(evt);
            }
        });

        jButton5.setText("Rechercher");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        jButton7.setText("Annuler");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        jLabel22.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel22.setForeground(new java.awt.Color(255, 255, 255));
        jLabel22.setText("Entrer le pseudo de la personne à rechercher : ");

        jTextPseudoDFS2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextPseudoDFS2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDFSpseudoLayout = new javax.swing.GroupLayout(jDFSpseudo.getContentPane());
        jDFSpseudo.getContentPane().setLayout(jDFSpseudoLayout);
        jDFSpseudoLayout.setHorizontalGroup(
            jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDFSpseudoLayout.createSequentialGroup()
                .addGroup(jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(jDFSpseudoLayout.createSequentialGroup()
                        .addGap(58, 58, 58)
                        .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButton5))
                    .addGroup(jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jDFSpseudoLayout.createSequentialGroup()
                            .addContainerGap()
                            .addGroup(jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jLabel14)
                                .addComponent(jLabel19)))
                        .addGroup(jDFSpseudoLayout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(jLabel22))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                .addGroup(jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jTextPseudoDFS, javax.swing.GroupLayout.DEFAULT_SIZE, 25, Short.MAX_VALUE)
                    .addComponent(jTextPseudoDFS2))
                .addContainerGap(21, Short.MAX_VALUE))
        );
        jDFSpseudoLayout.setVerticalGroup(
            jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDFSpseudoLayout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19)
                    .addComponent(jTextPseudoDFS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(jTextPseudoDFS2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)
                .addGroup(jDFSpseudoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton7)
                    .addComponent(jButton5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(19, 19, 19))
        );

        jLabel15.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel15.setForeground(new java.awt.Color(255, 255, 255));
        jLabel15.setText("Recherche Pseudo Direct");

        jLabel20.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel20.setForeground(new java.awt.Color(255, 255, 255));
        jLabel20.setText("Entrer le pseudo de la personne à rechercher : ");

        jTextPseudoDirect.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextPseudoDirectActionPerformed(evt);
            }
        });

        jButton8.setText("Rechercher");
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jButton9.setText("Annuler");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDirectLayout = new javax.swing.GroupLayout(jDirect.getContentPane());
        jDirect.getContentPane().setLayout(jDirectLayout);
        jDirectLayout.setHorizontalGroup(
            jDirectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDirectLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDirectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel15)
                    .addGroup(jDirectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jLabel20)
                        .addGroup(jDirectLayout.createSequentialGroup()
                            .addGap(61, 61, 61)
                            .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButton8))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 25, Short.MAX_VALUE)
                .addComponent(jTextPseudoDirect, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(21, Short.MAX_VALUE))
        );
        jDirectLayout.setVerticalGroup(
            jDirectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDirectLayout.createSequentialGroup()
                .addGap(16, 16, 16)
                .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jDirectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel20)
                    .addComponent(jTextPseudoDirect, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jDirectLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton9)
                    .addComponent(jButton8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(19, Short.MAX_VALUE))
        );

        jLabel16.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
        jLabel16.setForeground(new java.awt.Color(255, 255, 255));
        jLabel16.setText("Succès !");

        jLabel23.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel23.setForeground(new java.awt.Color(255, 255, 255));
        jLabel23.setText("Vous avez trouvé la personne recherchée ! ");

        jVisualiseSucces.setText("Visualiser");
        jVisualiseSucces.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jVisualiseSuccesActionPerformed(evt);
            }
        });

        jLabelSuccesNbAmis.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelSuccesNbAmis.setForeground(new java.awt.Color(255, 255, 255));

        javax.swing.GroupLayout jSuccesLayout = new javax.swing.GroupLayout(jSucces.getContentPane());
        jSucces.getContentPane().setLayout(jSuccesLayout);
        jSuccesLayout.setHorizontalGroup(
            jSuccesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSuccesLayout.createSequentialGroup()
                .addGroup(jSuccesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jSuccesLayout.createSequentialGroup()
                        .addGap(124, 124, 124)
                        .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jSuccesLayout.createSequentialGroup()
                        .addGap(130, 130, 130)
                        .addComponent(jVisualiseSucces))
                    .addGroup(jSuccesLayout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addGroup(jSuccesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jSuccesLayout.createSequentialGroup()
                                .addComponent(jLabelSuccesNbAmis, javax.swing.GroupLayout.PREFERRED_SIZE, 297, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(resultatRecherche)
                                .addGap(22, 22, 22))
                            .addComponent(jLabel23))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jSuccesLayout.setVerticalGroup(
            jSuccesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jSuccesLayout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel23)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelSuccesNbAmis, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(resultatRecherche)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jVisualiseSucces)
                .addContainerGap())
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Polybook - Fenetre Principale");

        BackgroundPrincipale.setIcon(new javax.swing.ImageIcon(getClass().getResource("/image/Polybook.jpg"))); // NOI18N

        jMenu1.setText("Menu");

        jMenuItem1.setText("Nouveau réseau");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem1);

        jMenuItem15.setText("Visualiser le réseau");
        jMenuItem15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem15ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem15);

        jMenuItem2.setText("Sauvegarder le réseau");
        jMenu1.add(jMenuItem2);

        jMenuItem3.setText("Quitter");
        jMenu1.add(jMenuItem3);

        jMenuBar1.add(jMenu1);

        jMenu3.setText("Recherche");
        jMenu3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu3ActionPerformed(evt);
            }
        });

        jMenuBFS.setText("Recherche BFS P");
        jMenuBFS.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenuBFSMouseClicked(evt);
            }
        });
        jMenuBFS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuBFSActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuBFS);

        jMenuItem4.setText("Recherche BFS I");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem4);

        jMenuDFS.setText("Recherche DFS P");
        jMenuDFS.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuDFSActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuDFS);

        jMenuItem6.setText("Recherche DFS I");
        jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem6ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem6);

        jMenuDirect.setText("Recherche Direct");
        jMenuDirect.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuDirectActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuDirect);
        jMenu3.add(jSeparator2);

        jMenuItem8.setText("Tri par célébrité");
        jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem8ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem8);

        jMenuItem9.setText("Tri par nom");
        jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem9ActionPerformed(evt);
            }
        });
        jMenu3.add(jMenuItem9);

        jMenuBar1.add(jMenu3);

        jMenu2.setText("A propos");
        jMenuBar1.add(jMenu2);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(BackgroundPrincipale))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(BackgroundPrincipale, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 529, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
        // TODO add your handling code here:
        jIF_CreateReseau.pack();
        jIF_CreateReseau.getContentPane().setBackground(new Color(59, 89, 152));
        //Mise en place du groupe de radioButtons.
        jRB_01.setActionCommand("1000");
        jRB_02.setActionCommand("10000");
        jRB_03.setActionCommand("100000");
        jRB_04.setActionCommand("1000000");

        JbGroupCreateReseau.add(jRB_01);
        JbGroupCreateReseau.add(jRB_02);
        JbGroupCreateReseau.add(jRB_03);
        JbGroupCreateReseau.add(jRB_04);
        jRB_01.setSelected(true);
        jIF_CreateReseau.setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void jRB_03ComponentMoved(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_jRB_03ComponentMoved
        // TODO add your handling code here:
    }//GEN-LAST:event_jRB_03ComponentMoved

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:
        //RÃƒÂ©cupÃƒÂ©ration de la valeur du rÃƒÂ©seau 
        int tailleReseau = Integer.parseInt(JbGroupCreateReseau.getSelection().getActionCommand());
        int tailleNoyau = Integer.parseInt(jTextCreateReseauNbNoyau.getText());
        ListPersonne.nbPersonne = tailleReseau;
        jIF_CreateReseau.setVisible(false);
        jIF_CreateReseau1.pack();
        jIF_CreateReseau1.getContentPane().setBackground(new Color(59, 89, 152));
        jIF_CreateReseau1.setVisible(true);

        threadCreation = new Thread(new Runnable() {

            public void run() {
                final Timer temps = new Timer();
                temps.schedule(new TimerTask() {

                    public void run() {
                        int time = Integer.parseInt(jLabelTimeCreation.getText());
                        time++;
                        jLabelTimeCreation.setText(String.valueOf(time));
                    }
                }, 0, 2000);
                ListPersonne.ListPersonne(ListPersonne.nbPersonne);
                temps.cancel();
                model.initialise(ListPersonne.listePersonne);
                jVisualisation.pack();
                jVisualisation.setVisible(true);
                model.fireTableDataChanged();
                jIF_CreateReseau1.setVisible(false);
            }
        });
        threadCreation.start();


        /*
         *
         */


    }//GEN-LAST:event_jButton4ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:
        try {
            threadCreation.stop();
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            jIF_CreateReseau.setVisible(false);
        }


    }//GEN-LAST:event_jButton6ActionPerformed

    private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable1MouseClicked

        if (evt.getClickCount() == 2) {
            int ligneCliquer = jTable1.getSelectedRow();
            affichePersonne(ligneCliquer);

        }

    }//GEN-LAST:event_jTable1MouseClicked

    private void jMenuItem15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem15ActionPerformed
        // Si la le réseau existe déja, on affiche classiquement. 
        if (ListPersonne.listePersonne != null) {
            model.initialise(ListPersonne.listePersonne);
            jVisualisation.pack();
            jVisualisation.setVisible(true);
            model.fireTableDataChanged();
            
        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }

    }//GEN-LAST:event_jMenuItem15ActionPerformed

    private void jTextPseudoBFSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextPseudoBFSActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextPseudoBFSActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // Il faut au moins que la liste existe 
        if (ListPersonne.listePersonne != null) {
            int pseudoAdemarrer = Integer.parseInt(jTextPseudoBFS.getText());
            int pseudoArechercher = Integer.parseInt(jTextPseudoBFS2.getText());

            boolean test = Search.searchByPseudoBFS(ListPersonne.getListePersonne(), pseudoArechercher, ListPersonne.getListePersonne().get(pseudoAdemarrer));
            if (test) {
                jSucces.pack();
                jSucces.getContentPane().setBackground(new Color(59, 89, 152));
                jSucces.setVisible(true);
                jLabelSuccesNbAmis.setText("Vous avez traversez "+Search.compteurAmisTraverser+" amis.");
                Search.compteurAmisTraverser = 0;
                resultatRecherche.setText(jTextPseudoBFS2.getText());
            } else {
            }

        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jMenuBFSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuBFSActionPerformed

        //RECHERCHE BFS MENU

        if (ListPersonne.listePersonne != null) {
            jBFSpseudo.pack();
            jBFSpseudo.getContentPane().setBackground(new Color(59, 89, 152));
            jBFSpseudo.setVisible(true);

        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }

    }//GEN-LAST:event_jMenuBFSActionPerformed

    private void jMenuDFSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuDFSActionPerformed
        // TODO add your handling code here:
        //RECHERCHE DFS MENU

        if (ListPersonne.listePersonne != null) {
            jBFSpseudo.pack();
            jBFSpseudo.getContentPane().setBackground(new Color(59, 89, 152));
            jBFSpseudo.setVisible(true);

        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }
    }//GEN-LAST:event_jMenuDFSActionPerformed

    private void jTextPseudoDFSActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextPseudoDFSActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextPseudoDFSActionPerformed

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed

        // RECHERCHE DFS !! Il faut au moins que la liste existe 
        if (ListPersonne.listePersonne != null) {
            int pseudoAdemarrer = Integer.parseInt(jTextPseudoDFS.getText());
            int pseudoArechercher = Integer.parseInt(jTextPseudoDFS2.getText());

            boolean test = Search.searchByPseudoDFS(ListPersonne.getListePersonne(), pseudoArechercher, ListPersonne.getListePersonne().get(pseudoAdemarrer));
            if (test) {
                jSucces.pack();
                jSucces.getContentPane().setBackground(new Color(59, 89, 152));
                jSucces.setVisible(true);
                resultatRecherche.setText(jTextPseudoDFS2.getText());
            } else {
            }
        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jMenuDirectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuDirectActionPerformed
        // TODO add your handling code here: 
        if (ListPersonne.listePersonne != null) {
            jDirect.pack();
            jDirect.getContentPane().setBackground(new Color(59, 89, 152));
            jDirect.setVisible(true);

        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }
    }//GEN-LAST:event_jMenuDirectActionPerformed

    private void jTextPseudoDirectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextPseudoDirectActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextPseudoDirectActionPerformed

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        // TODO add your handling code here:
        affichePersonne(Integer.parseInt(jTextPseudoDirect.getText()));
    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jTextPseudoBFS2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextPseudoBFS2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextPseudoBFS2ActionPerformed

    private void jTextPseudoDFS2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextPseudoDFS2ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextPseudoDFS2ActionPerformed

    private void jVisualiseSuccesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jVisualiseSuccesActionPerformed

        jSucces.setVisible(false);
        affichePersonne(Integer.parseInt(resultatRecherche.getText()));

    }//GEN-LAST:event_jVisualiseSuccesActionPerformed

    private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed

        TriRapide.quickSortDegree(ListPersonne.listePersonne, 0, ListPersonne.listePersonne.size() - 1);
        model.initialise(ListPersonne.listePersonne);
        jVisualisation.pack();
        jVisualisation.setVisible(true);
        model.fireTableDataChanged();


    }//GEN-LAST:event_jMenuItem8ActionPerformed

    private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem9ActionPerformed


        TriRapide.quickSortString(ListPersonne.listePersonne, 0, ListPersonne.listePersonne.size() - 1);
        model.initialise(ListPersonne.listePersonne);
        jVisualisation.pack();
        jVisualisation.setVisible(true);
        model.fireTableDataChanged();


    }//GEN-LAST:event_jMenuItem9ActionPerformed

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
        //searchByInterestBFS();
        // RECHERCHE DFS !! Il faut au moins que la liste existe 
        if (ListPersonne.listePersonne != null) {
            int pseudoAdemarrer = 2;
            ArrayList<Personne> res = Search.searchByInterestBFS(ListPersonne.getListePersonne(), ListPersonne.getListePersonne().get(pseudoAdemarrer));
            
            // Si la le réseau existe déja, on affiche classiquement. 
            if (res != null) {
                model.AfficheTriList(res);
                jVisualisation.pack();
                jVisualisation.setVisible(true);
                model.fireTableDataChanged();
            } else // Message erreur
            {
                jError.pack();
                jError.getContentPane().setBackground(new Color(59, 89, 152));
                jError.setVisible(true);
            }
        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }         // TODO add your handling code here:
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    private void jMenu3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu3ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenu3ActionPerformed

    private void jMenuBFSMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenuBFSMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jMenuBFSMouseClicked

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        // TODO add your handling code here:
        TriRapide.quickSortDegree(ListPersonne.listePersonne, 0, ListPersonne.listePersonne.size() - 1);
        model.initialise(ListPersonne.listePersonne);
        jVisualisation.pack();
        jVisualisation.setVisible(true);
        model.fireTableDataChanged();
    }//GEN-LAST:event_jButton10ActionPerformed

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        // TODO add your handling code here:
        jIF_CreateReseau1.pack();
        jIF_CreateReseau1.getContentPane().setBackground(new Color(59, 89, 152));
        jIF_CreateReseau1.setVisible(true);
        jLabel7.setText("Tri en cours...");
        jLabelTimeCreation.setText("0");
        threadTri= new Thread(new Runnable() {

            public void run() {
                final Timer temps = new Timer();
                temps.schedule(new TimerTask() {
                    
                    public void run() {
                        int time = Integer.parseInt(jLabelTimeCreation.getText());
                        time++;
                        jLabelTimeCreation.setText(String.valueOf(time));
                    }
                }, 0, 2000);
                //TriRapide.quickSortString(ListPersonne.listePersonne, 0, ListPersonne.listePersonne.size() - 1);
                temps.cancel();
                PersonneComparator comp = new PersonneComparator();
                Collections.sort(ListPersonne.listePersonne, comp);
                model.initialise(ListPersonne.listePersonne);
                jVisualisation.pack();
                jVisualisation.setVisible(true);
                model.fireTableDataChanged();
                jIF_CreateReseau1.setVisible(false);
            }
        });
        threadTri.start();
        
    }//GEN-LAST:event_jButton11ActionPerformed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        // TODO add your handling code here:
        TriRapide.quickSortPseudo(ListPersonne.listePersonne, 0, ListPersonne.listePersonne.size() - 1);
        model.initialise(ListPersonne.listePersonne);
        jVisualisation.pack();
        jVisualisation.setVisible(true);
        model.fireTableDataChanged();
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed
 //searchByInterestBFS();
        // RECHERCHE DFS !! Il faut au moins que la liste existe 
        if (ListPersonne.listePersonne != null) {
            int pseudoAdemarrer = 2;
            Search.searchByInterestDFS(ListPersonne.getListePersonne(), ListPersonne.getListePersonne().get(pseudoAdemarrer));

            // Si la le réseau existe déja, on affiche classiquement. 
           /* if (res != null) {
                model.initialise(res);
                jVisualisation.pack();
                jVisualisation.setVisible(true);
                model.fireTableDataChanged();
            } else // Message erreur
            {
                jError.pack();
                jError.getContentPane().setBackground(new Color(59, 89, 152));
                jError.setVisible(true);
            }
        } else // Message erreur
        {
            jError.pack();
            jError.getContentPane().setBackground(new Color(59, 89, 152));
            jError.setVisible(true);
        }         // TODO add your handling code here:
        * 
        */
        }
    }//GEN-LAST:event_jMenuItem6ActionPerformed

    public static JProgressBar returnBar() {
        JProgressBar pro = jProgressBarGeneration;
        return pro;
    }
        

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(view.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */

    }

    public void affichePersonne(int number) {
        jPersonne.getContentPane().setBackground(new Color(59, 89, 152));
        jPersonne.pack();
        jPersonne.setVisible(true);
        jLabelNom.setText(String.valueOf(jTable1.getValueAt(number, 1)));
        jLabelPrenom.setText(String.valueOf(jTable1.getValueAt(number, 2)));
        jLabelPseudo.setText(String.valueOf(jTable1.getValueAt(number, 0)));
        jLabelTx.setText(String.valueOf(jTable1.getValueAt(number, 4)));
        jLabelInteret.setText(ListPersonne.listePersonne.get(number).getCentres_interet());

        File dossier = new File("C:/Users/epulapp/Documents/NetbeansProjects/ProjetInfo/image/icon/");
        listerRepertoire(dossier, number);
    }

    public void listerRepertoire(File repertoire, int ligneCliquer) {

        String[] listefichiers;
        int hasardPhoto = (int) Math.floor(Math.random() * 70);
        int i;
        //System.out.println(hasardPhoto);
        listefichiers = repertoire.list();
        for (i = 0; i < listefichiers.length - 1; i++) {

            if (i == hasardPhoto) {
                //System.out.println(listefichiers[i]);
                Icon icone = new ImageIcon(repertoire + "/" + listefichiers[i]);
                jIcone.setIcon(icone);
            }
        }
    }
    private Thread threadTri;
    private Thread threadCreation;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel BackgroundPrincipale;
    private javax.swing.JLabel BackgroundPrincipale1;
    private javax.swing.ButtonGroup JbGroupCreateReseau;
    private javax.swing.JLabel Logo1;
    private javax.swing.JLabel Logo2;
    private javax.swing.JFrame jBFSpseudo;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JFrame jDFSpseudo;
    private javax.swing.JFrame jDirect;
    private javax.swing.JFrame jError;
    private javax.swing.JFrame jIF_CreateReseau;
    private javax.swing.JFrame jIF_CreateReseau1;
    private javax.swing.JLabel jIcone;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabelInteret;
    private javax.swing.JLabel jLabelNom;
    private javax.swing.JLabel jLabelPrenom;
    private javax.swing.JLabel jLabelPseudo;
    private javax.swing.JLabel jLabelSuccesNbAmis;
    private javax.swing.JLabel jLabelTimeCreation;
    private javax.swing.JLabel jLabelTx;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuItem jMenuBFS;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuDFS;
    private javax.swing.JMenuItem jMenuDirect;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem15;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JFrame jPersonne;
    private static javax.swing.JProgressBar jProgressBarGeneration;
    private javax.swing.JRadioButton jRB_01;
    private javax.swing.JRadioButton jRB_02;
    private javax.swing.JRadioButton jRB_03;
    private javax.swing.JRadioButton jRB_04;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JFrame jSucces;
    private javax.swing.JTable jTable1;
    private javax.swing.JTextField jTextCreateReseauNbNoyau;
    private javax.swing.JTextField jTextPseudoBFS;
    private javax.swing.JTextField jTextPseudoBFS2;
    private javax.swing.JTextField jTextPseudoDFS;
    private javax.swing.JTextField jTextPseudoDFS2;
    private javax.swing.JTextField jTextPseudoDirect;
    private javax.swing.JFrame jVisualisation;
    private javax.swing.JButton jVisualiseSucces;
    private javax.swing.JLabel resultatRecherche;
    // End of variables declaration//GEN-END:variables
}
